#include "OLSpinner.h"

#include <QMovie>
#include <QLabel>
#include <QResizeEvent>

#include <QVBoxLayout>

OLSpinner::OLSpinner(QWidget *parent) :
    QWidget(parent)
{
    QMovie *movie = new QMovie(":/gfx/spinner.gif", QByteArray(), this);
    movie->setCacheMode(QMovie::CacheAll);
    movie->setScaledSize(QSize(40, 40));

    QLabel* label = new QLabel(this);
    label->setMovie(movie);



    QVBoxLayout* layout = new QVBoxLayout();
    layout->addWidget(label,0,Qt::AlignCenter);
    setLayout(layout);

    movie->start();
}

